//
//  UserLoginController.m
//  lcb
//
//  Created by lcb on 2017/5/26.
//  Copyright © 2017年 lcb. All rights reserved.
//

#import "UserLoginController.h"
#import "UserLoginVC.h"
#import "XDGestureLoginVC.h"
@implementation UserLoginController
+ (instancetype)newWithLoginDelegate:(id<LcbLoginDelegate>)delegate
{
    UserLoginController *navigationController = [super new];
    navigationController.navigationBarHidden = YES;
    [navigationController setupAuthorizedWithDelegate:delegate];
    return navigationController;
}
+ (instancetype)newWithGestureDelegate:(id<LcbLoginDelegate>)delegate
{
    UserLoginController *navigationController = [super new];
    navigationController.navigationBarHidden = YES;
    [navigationController setuoGestureWithDelegate:delegate];
    return navigationController;
}
- (void)setupAuthorizedWithDelegate:(id<LcbLoginDelegate>)delegate
{
    UserLoginVC *viewController = [UserLoginVC new];
    viewController.delegate = delegate;
    self.viewControllers = @[viewController];
}
-(void)setuoGestureWithDelegate:(id<LcbLoginDelegate>)delegate
{
    XDGestureLoginVC *gestvc =[XDGestureLoginVC new];
    gestvc.delegate = delegate;
    self.viewControllers = @[gestvc];
}
@end
